package com.offcn.bean;

import java.util.List;
import java.util.Objects;

public class DataBean {
    //封装统计页面所需要的数据
    //电影总数
    private Integer movienum;
    //演员总数
    private Integer perfomernum;
    //用户总数
    private Integer usernum;
    //分类总数
    private Integer categroynum;

    //统计页面所需的集合数据
    //分类占比集合
    private List<CategroyTop> tops;

    public Integer getMovienum() {
        return movienum;
    }

    public void setMovienum(Integer movienum) {
        this.movienum = movienum;
    }

    public Integer getPerfomernum() {
        return perfomernum;
    }

    public void setPerfomernum(Integer perfomernum) {
        this.perfomernum = perfomernum;
    }

    public Integer getUsernum() {
        return usernum;
    }

    public void setUsernum(Integer usernum) {
        this.usernum = usernum;
    }

    public Integer getCategroynum() {
        return categroynum;
    }

    public void setCategroynum(Integer categroynum) {
        this.categroynum = categroynum;
    }

    public List<CategroyTop> getTops() {
        return tops;
    }

    public void setTops(List<CategroyTop> tops) {
        this.tops = tops;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DataBean dataBean = (DataBean) o;
        return Objects.equals(movienum, dataBean.movienum) &&
                Objects.equals(perfomernum, dataBean.perfomernum) &&
                Objects.equals(usernum, dataBean.usernum) &&
                Objects.equals(categroynum, dataBean.categroynum) &&
                Objects.equals(tops, dataBean.tops);
    }

    @Override
    public int hashCode() {
        return Objects.hash(movienum, perfomernum, usernum, categroynum, tops);
    }

    @Override
    public String toString() {
        return "DataBean{" +
                "movienum=" + movienum +
                ", perfomernum=" + perfomernum +
                ", usernum=" + usernum +
                ", categroynum=" + categroynum +
                ", tops=" + tops +
                '}';
    }
}